package czx.wt.system.service;

import com.baomidou.mybatisplus.service.IService;
import czx.wt.system.pojo.Authorities;

import java.util.List;

/**
 * @Author: ChenZhiXiang
 * @Date: 2019/6/19 23:19
 * @Description:
 */
public interface IAuthoritiesService extends IService<Authorities> {

    /**
     * 根据用户编码查询权限
     * @param userId
     * @return
     */
    List<String> getAuthoritiesByUserId(Integer userId);

    /**
     * 根据角色编码查询权限
     * @param roleIds
     * @return
     */
    List<String> getAuthoritiesByRoleId(List<Integer> roleIds);

    /**
     * 根据单个角色编码查询权限
     * @param roleId
     * @return
     */
    List<String> getAuthoritiesListByRoleId(Integer roleId);
}
